$OpenBSD: patch-vcl_Library_vclplug_kde_mk,v 1.3 2015/05/03 11:30:33 robert Exp $
--- vcl/Library_vclplug_kde.mk.orig.port	Thu Mar 26 12:51:14 2015
+++ vcl/Library_vclplug_kde.mk	Sat May  2 17:06:19 2015
@@ -53,6 +53,7 @@ $(eval $(call gb_Library_use_externals,vclplug_kde,\
 	icuuc \
 	kde \
 	glew \
+	Xrender \
 ))
 
 $(eval $(call gb_Library_add_libs,vclplug_kde,\
@@ -70,10 +71,10 @@ $(eval $(call gb_Library_add_exception_objects,vclplug
 	vcl/unx/kde/UnxNotifyThread \
 ))
 
-ifeq ($(OS),LINUX)
+ifneq (,$(filter LINUX OPENBSD,$(OS)))
 $(eval $(call gb_Library_add_libs,vclplug_kde,\
 	-lm \
-	-ldl \
+	$(if $(filter LINUX,$(OS)),-ldl) \
 	-lpthread \
 ))
 endif
